[self autorelease] not doing dealloc
Posted
by jonydep
on Stack Overflow
See other posts from Stack Overflow
or by jonydep
Published on 2010-04-12T14:45:37Z
Indexed on
2010/04/12
14:53 UTC
Read the original article
Hit count: 452
i have this in the superview:
mySubView = [[MySubView alloc] init];
[self addSubview:mySubView];
[mySubView release];
then at some point later, in the sub view, this:
[self removeFromSuperview];
when i debug it, i notice that the dealloc for the subview is never called, even though i'm fairly sure the reference count should be 0. any ideas why this might be? thanks.
© Stack Overflow or respective owner